package com.rc.evcharger.redis;


import com.rc.evcharger.common.annotation.Redis;
import com.rc.evcharger.common.annotation.RedisType;
import com.rc.evcharger.common.base.BaseRedis;

@Redis(table = "current_data")
public class RedCurrentData extends BaseRedis {
    @Redis(type = RedisType.KEY)
    public String rtua;
    @Redis(type = RedisType.KEY)
    public String gunNum;
    @Redis(type = RedisType.KEY)
    public String code;
    @Redis(type = RedisType.KEY)
    public String cardNo;

    @Redis(type = RedisType.VALUE)
    Object value;


    public RedCurrentData(String rtua, String gunNum, String code, String cardNo) {
        super();
        this.rtua = rtua;
        this.gunNum = gunNum;
        this.code = code;
        this.cardNo = cardNo;
    }


    public RedCurrentData(String rtua, String gunNum, String code, String cardNo, Object value) {
        super();
        this.rtua = rtua;
        this.gunNum = gunNum;
        this.code = code;
        this.cardNo = cardNo;
        this.value = value;
    }

}
